import logging
import datetime

class MapperLibrary(object):
  
  def __getattribute__(self,name):
    try:
      return object.__getattribute__(self, name)
    except AttributeError:
      return object.__getattribute__(self, 'map')   
  
  """ Default map, just return value """
  def map(self, param):
    return param
      
  def mapPostContactLogUpcoming(self, upcoming):
    return datetime.datetime.now()

  def mapJsonContactLogUpcoming(self, upcoming):
    return upcoming.ctime()
